<?php
/**
 * User : Ciddy Natadisastra
 * Create Date: 7/22/11
 * Change Date: 7/22/11
 * File Description:
 *
 *
 *
 */
 
        function rot13encrypt ($userEmail, $User) {
            return str_rot13(base64_encode($userEmail.'|'.$User));
        }

        function rot13decrypt ($userCode) {
            return base64_decode(str_rot13($userCode));
        }

$cd = rot13encrypt('gdfgdgd@dgewe3yeryhe.co.id', 'dyhdtwetw');
echo $cd." - ";
echo $x = rot13decrypt($cd);
echo $x." - ";
print_r(explode('#', $x));

echo base64_encode('123|cdcdcd|cd@cd.cd|123');